import request from '@/utils/request'

// 查询配方成分列表
export function listRecieptCompose(query) {
  return request({
    url: '/ruoyiyinzheng/recieptCompose/list',
    method: 'get',
    params: query
  })
}

// 查询配方成分详细
export function getRecieptCompose(id) {
  return request({
    url: '/ruoyiyinzheng/recieptCompose/' + id,
    method: 'get'
  })
}

// 新增配方成分
export function addRecieptCompose(data) {
  return request({
    url: '/ruoyiyinzheng/recieptCompose',
    method: 'post',
    data: data
  })
}

// 修改配方成分
export function updateRecieptCompose(data) {
  return request({
    url: '/ruoyiyinzheng/recieptCompose',
    method: 'put',
    data: data
  })
}

// 删除配方成分
export function delRecieptCompose(id) {
  return request({
    url: '/ruoyiyinzheng/recieptCompose/' + id,
    method: 'delete'
  })
}
